<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">设备编码</label>
            <div class="layui-input-block">
                <input type="text" name="device_id" class="layui-input" lay-verify="required" placeholder="请输入设备编码" value="{$row.device_id|default=''}">
                <tip>整个系统的设备编码必须唯一，否则保存失败</tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">设备名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input" lay-verify="required" placeholder="请输入设备名称" value="{$row.name|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">区域名称</label>
            <div class="layui-input-block">
                <select name="area_id" lay-verify="required">
                    <option value=''></option>
                    {foreach $getSystemProvinceList as $k=>$v}
                    <option value='{$k}' {in name="k" value="$row.area_id"}selected=""{/in}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">经度</label>
            <div class="layui-input-block">
                <input type="text" name="x_coordinates" class="layui-input" lay-verify="required" placeholder="请输入进度" value="{$row.x_coordinates|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">纬度</label>
            <div class="layui-input-block">
                <input type="text" name="y_coordinates" class="layui-input" lay-verify="required" placeholder="请输入纬度" value="{$row.y_coordinates|default=''}">
                <tip><a href="https://lbs.amap.com/console/show/picker" target="_blank" style="color: blue;padding-left: 10px;text-decoration: underline;">坐标拾取器</a></tip>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>